home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / tcpdump-.001 / tcpdump-~ / tcpdump-3.0.2-linux / linux-include / netinet / udp.h < prev   
Encoding:
C/C++ Source or Header  |  1994-06-30  |  567 b   |  25 lines

  1. /*    @(#)udp.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/86    */
  2.  
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.  The Berkeley software License Agreement
  6.  * specifies the terms and conditions for redistribution.
  7.  */
  8.  
  9. /*
  10.  * Udp protocol header.
  11.  * Per RFC 768, September, 1981.
  12.  */
  13.  
  14. #ifndef _netinet_udp_h
  15. #define _netinet_udp_h
  16.  
  17. struct udphdr {
  18.     u_short    uh_sport;        /* source port */
  19.     u_short    uh_dport;        /* destination port */
  20.     short    uh_ulen;        /* udp length */
  21.     u_short    uh_sum;            /* udp checksum */
  22. };
  23.  
  24. #endif /*!_netinet_udp_h*/
  25.